package nc.itf.cad.pub;

import nc.bs.framework.common.NCLocator;

public class CADPubDelegator {
    private static IPersistenceRetrieve iPersistenceRetrieve = null;
    private static IPersistenceUpdate iPersistenceUpdt = null;
    
    public static IPersistenceRetrieve getIPersistenceRetrieve()
    {
        if (iPersistenceRetrieve == null)
        {
            iPersistenceRetrieve =
                (IPersistenceRetrieve) NCLocator.getInstance().lookup(IPersistenceRetrieve.class.getName());
        }
        return iPersistenceRetrieve;
    }
    
    public static IPersistenceUpdate getIPersistenceUpdate()
    {
        if (iPersistenceUpdt == null)
        {
            iPersistenceUpdt =
                (IPersistenceUpdate) NCLocator.getInstance().lookup(IPersistenceUpdate.class.getName());
        }
        return iPersistenceUpdt;
    }
}
